package com.java.manage.service.api;

import com.java.manage.dao.BrandMapper;
import com.java.manage.dao.ModelMapper;
import com.java.manage.model.Brand;
import com.java.manage.model.Model;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class ModelApiServiceImpl implements ModelApiService{

    @Autowired
    private ModelMapper modelMapper;

    @Override
    public Model listAll(Integer id) {
        return modelMapper.get(id);
    }

    @Override
    public List<Model> listByIds(List<Integer> id) {
        return modelMapper.listByIds(id);
    }
}
